import 'package:sensors_analytics_flutter_plugin/sensors_analytics_flutter_plugin.dart';

class YZAnalytics {
  ///自定义神策埋点
  static void track(String event, String eventName, String channel,
      Map<String, dynamic>? properties) {
    Map<String, dynamic> parmas = {"channel": channel, "eventName": eventName};
    if (properties != null) {
      parmas.addAll(properties);
    }
    SensorsAnalyticsFlutterPlugin.track(event, parmas);
  }
}
